package com.kehutong.admin.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;

import java.sql.Timestamp;

@Table(value = "t_menu_record", comment="应用常用记录", multi = true)
public class MenuRecord extends Entity {

	private static final long serialVersionUID = 1L;

	protected MenuRecord(String id) {
		super(id);
	}

	@Column(comment = "访问人的ID")
	private String userId;

	@Column(comment = "菜单ID")
	private String menuId;

	@Column(comment="修改时间")
	private Timestamp accessTime;

	@UnSave
	private Menu menu;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public Timestamp getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(Timestamp accessTime) {
		this.accessTime = accessTime;
	}

	public Menu getMenu() {
		return menu;
	}

	public void setMenu(Menu menu) {
		this.menu = menu;
	}
}